package com.example.demo.Service;

import com.example.demo.Entity.Directory;
import com.example.demo.Entity.Directoryitem;
import com.example.demo.Entity.Note;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DirectoryService {
    public List<Note> select(Integer group);
    public List<Note> select(Integer group,Integer subGroup);
    public List<Note> select(Integer group,Integer subGroup,Integer subId);
    public void deleteByGroup(Integer group);
    public void deleteBySubGroup(Integer group,Integer subGroup);
    public void deleteBySubId(Integer group,Integer subGroup,Integer subId);
    public void update(Directory dir);
    public void insert(Directory dir) throws Exception;
    public void deleteByNoteId(Integer noteId);
}